package com.ruoyi.course.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程管理对象 course
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程id */
    private Long id;

    /** 课程标题 */
    @Excel(name = "课程标题")
    private String title;

    /** 课程封面图 */
    @Excel(name = "课程封面图")
    private String cover;

    /** 课程简介(200字以内) */
    @Excel(name = "课程简介(200字以内)")
    private String description;

    /** 学科分类id */
    @Excel(name = "学科分类id")
    private Long categoryId;

    /** 年级id */
    @Excel(name = "年级id")
    private Long gradeId;

    /** 来源(老师或学校) */
    @Excel(name = "来源(老师或学校)")
    private String source;

    /** 0-草稿，1-上架，2-下架
 */
    @Excel(name = "0-草稿，1-上架，2-下架 ")
    private Long status;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 0-保留,1-删除
 */
    @Excel(name = "0-保留,1-删除 ")
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setGradeId(Long gradeId) 
    {
        this.gradeId = gradeId;
    }

    public Long getGradeId() 
    {
        return gradeId;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("description", getDescription())
            .append("categoryId", getCategoryId())
            .append("gradeId", getGradeId())
            .append("source", getSource())
            .append("status", getStatus())
            .append("price", getPrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
